﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace TareasService
{
    public class Project : IComparable
    {
        public int ProjectId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public DateTime CreationDate { get; set; }
        public List<Task> Tasks { get; set; }
        public int CompareTo(object obj)
        {
            return (obj as Project).ProjectId == ProjectId ? 0 : 1;
        }
    }

    public class Task
    {
        public int TaskId { get; set; }
        public string Title { get; set; }
        public Project RelatedProject { get; set; }
    }
}
